package com.yyx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebServlet;

@SpringBootApplication
// 可以直接通过@WebServlet、@WebFilter、@WebListener注解自动注册到Spring容器中
//扫描拦截器
@ServletComponentScan
@EnableTransactionManagement
//允许获取代理对象
@EnableAspectJAutoProxy(exposeProxy = true)
public class ReggieApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
    }

}
